package com.xq.live.elasticsearch.product.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.elasticsearch.core.ElasticsearchTemplate;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @Title: ProductController
 * @Description: 商品controller
 * @Author: 123
 * @Date: 2019/5/21 10:54
 */
@Controller
@RequestMapping(value = "product")
public class ProductController {
//    @Autowired
//    private ElasticsearchTemplate elasticSearchTemplate;
//    @Autowired
//    private AreaService areaService;
//
//    @GetMapping(value="index")
//    public String  index() {
//        return "area/index";
//    }
//    @PostMapping(value="list")
//    public @ResponseBody
//    Pages<Pr>  list(Integer pageNumber, Integer pageSize, String searchContent) {
//        return areaService.searchAreaPage(pageNumber, pageSize, searchContent);
//    }
}
